import type { RouteRecordRaw } from 'vue-router'
import { UserType } from '@/types/user'

export const teacherRoutes: RouteRecordRaw[] = [
  {
    path: '/teacher',
    name: 'Teacher',
    component: () => import('@/layouts/MainLayout.vue'),
    meta: {
      title: '教师管理',
      roles: [UserType.TEACHER],
      icon: 'SolutionOutlined'
    },
    children: [
      {
        path: 'task',
        name: 'TeacherTask',
        component: () => import('@/views/teacher/task/index.vue'),
        meta: {
          title: '任务管理',
          icon: 'ProfileOutlined'
        }
      },
      {
        path: 'class',
        name: 'TeacherClass',
        component: () => import('@/views/teacher/class/index.vue'),
        meta: {
          title: '班级管理',
          icon: 'TeamOutlined'
        }
      },
      {
        path: 'task/submission/:id',
        name: 'TaskSubmission',
        component: () => import('@/views/teacher/task/submission/index.vue'),
        meta: {
          title: '提交列表',
          icon: 'FileOutlined'
        }
      },
      {
        path: 'notification',
        name: 'teacherNotificationManagement',
        component: () => import('@/views/notification/index.vue'),
        meta: {
          title: '通知管理',
          icon: 'BellOutlined'
        }
      },
    ]
  }
] 

export default teacherRoutes 